﻿using System;
public class Program
{
    static void Main(string[] args)
    {
        int[] rand = new int[100];
        Random ran = new Random();
        for(int i = 0; i < rand.Length; i++)
        {
            rand[i] = ran.Next(1000);
        }

        var sort_rand = rand.OrderBy(s => s);//linq排序
        foreach(int i in sort_rand)
        {
            Console.WriteLine(i);
        }
    }
    

}
